<template>
	<view class="content">
		<view class="card">
			<cell title='纳税人识别号' mode="input" v-model="formData.nsrsbh" maxlength="18" required></cell>
		</view>
		<button class="btn" size="default" type="primary" @click="jump()" hover-class="is-hover">下一步</button>
	</view>
</template>

<script>
	import Vue from 'vue'
	export default {
		data() {
			return {
				formData: {nsrsbh:'1213123*****'}
			}
		},
		
		methods: {
			async jump() {
				
				if(!this.formData.nsrsbh) {
					uni.showToast({
						icon: "none",
						title: '请输入纳税人识别号',
					})
					return
				}
				
				uni.setStorageSync('isImgCollect', true);
				await this.$myloading() // async
				uni.redirectTo({
					url: '/pages/index/success?go=1&title=税务授权结果&text=税务认证已通过，请返回进行后续操作&go=1&btn=返回'
				})
				//redirectTo 
			}
		}
	}
</script>

<style lang="scss" scoped>
	.btn {
		margin-top: 60rpx;
		width: calc(100% - 60rpx);
		margin-bottom: 300rpx;
	}
</style>